home *** CD-ROM | disk | FTP | other *** search
- projectname Gui1
- vbox
- button
- vrel 1
- text "1"
- id 1
- end
- button
- vrel 1
- text "2"
- id 2
- end
- end
-
- projectname Gui2
- hbox
- string
- vrel 1
- tags GTST_MaxChars,256
- id 3
- end
- button
- vrel 1
- text "2"
- id 4
- end
- end
-
- projectname Gui3
- vbox
- hbox
- button
- vrel 1
- text "1"
- id 5
- end
- button
- vrel 1
- text "2"
- id 6
- end
- end
- hbox
- button
- vrel 1
- text "3"
- id 7
- end
- button
- vrel 1
- text "4"
- id 8
- end
- end
- end
-
- #c_source
-
- char *modes[]={"Mode 1","Mode 2","Mode 3",NULL};
- struct WinInfo *muxmodes[]={&Gui1,&Gui2,&Gui3};
-
- int gui_mux=0;
-
- extern struct WinInfo TestPro;
-
- int MHook(struct IntuiMessage *msg)
- {
- StopGui(&TestPro);
-
- gui_mux=msg->Code;
-
- ClearWindow(TestPro.Window);
-
- /* SetRast(TestPro.Window->RPort,0);
- EraseRect(TestPro.Window->RPort,0,0,
- TestPro.Window->Width-1,TestPro.Window->Height-1); */
-
- RefreshWindowFrame(TestPro.Window);
-
- RenderGui(TestPro.Window,&TestPro);
- return(1);
- }
-
- int Multiplex(struct WinInfo *winfo,
- struct NewGadget *ng,
- struct GadInfo *gad,
- int left, int top, int width, int height)
- {
- return(SubGui(winfo,muxmodes[gui_mux],left,top,width,height));
- }
-
- #end_source
-
- projectname TestPro
- vbox
- cycle
- tags GTCY_Labels,(ULONG)modes
- id 10
- hook MHook
- end
- custom
- custom Multiplex
- id 11
- end
- end
-
-
-
-
-
-
-